<template>
  <div class="common-layout">
    <el-container>
      <el-header>
        <el-menu
          background-color="#003399" text-color="#FFFFFF" active-text-color="#EEEE00"
          default-active="this.$route.path" router class="el-menu-demo" mode="horizontal">
          <el-row>
            <el-col span="1">
              <el-menu-item>
                <div style="width: 120px">
                  <img style="height:45px" alt="Vue logo" src="../../assets/logo.png">
                </div>
              </el-menu-item>
            </el-col>
            <el-menu-item style="margin-left: 100px" v-for = "(item, i) in navList" :key="i" :index="item.name">
              {{ item.navItem }}
            </el-menu-item>
          </el-row>
        </el-menu>
      </el-header>
      <el-main>首页</el-main>
    </el-container>
  </div>
</template>

<script lang="ts" src="../home/test-home.ts"></script>

<style scoped>

</style>
